﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="seller_customerList.aspx.cs"
    Inherits="PeisongWeb.seller_customerList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>采购配送系统-账户管理</title>
    <!--#include file="../global.inc" -->

    <script language="javascript" type="text/javascript">
        function resetSrh() {
            document.getElementById("txt_username").value = "";
            document.getElementById("txt_phone").value = "";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <uc1:sellerHeader runat="server" ID="header" />
        <div id="homemain">
            <div id="main">
                <div class="title">
                    <div class="title_text">
                        <ul>
                            <li class="color1">用户管理</li>
                        </ul>
                    </div>
                </div>
                <div class="line_top">
                </div>
                <div id="mainmiddle">
                    <uc1:menu_sellerManage ID="menu1" runat="server" />
                    <div class="recipes_right">
                        <div style="padding-left: 20px; ">
                            <div class="login">
                                <div class="login_mains">
                                    <div style="width: 650px;" class="search_title">
                                        <span>查询搜索</span>
                                    </div>
                                    <div style="width: 628px;" class="listsearch">
                                        <ul>
                                            <li>登录名：
                                                <input runat="server" id="txt_username" name="" type="text" />
                                            </li>
                                            <li>电话：
                                                <input runat="server" id="txt_phone" name="" type="text" />
                                            </li>
                                            <li>
                                                <asp:Button runat="server" ID="btn_select" Text="查 询" OnClick="btn_select_Click" />
                                            </li>
                                            <li>
                                                <input type="button" value="重 置" id="btn_reset" onclick="resetSrh()" />
                                            </li>
                                            <li>
                                                <input type="button" value="添加新用户" id="Button1" onclick="window.location.href='seller_customerEdit.html'" />
                                            </li>
                                        </ul>
                                    </div>
                                    &nbsp;
                                    <div style="width: 650px;" class="list_content">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr class="list_title">
                                                <td width="10%" class="search_bg">
                                                    <div align="center">
                                                        登录名</div>
                                                </td>
                                                <td width="10%" class="search_bg">
                                                    <div align="center">
                                                        姓名</div>
                                                </td>
                                                <td width="10%" class="search_bg">
                                                    <div align="center">
                                                        E-mail</div>
                                                </td>
                                                <td width="10%" class="search_bg">
                                                    <div align="center">
                                                        联系电话</div>
                                                </td>
                                                <td width="10%" class="search_bg">
                                                    <div align="center">
                                                        操作</div>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <asp:Repeater ID="rpt_list" runat="server" OnItemCommand="rpt_list_ItemCommand">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td width="10%" height="26" bgcolor='<%# Container.ItemIndex%2==0? "#f3f8fc":"#d5e6f3"%>'
                                                            align="center">
                                                            <%# Eval("username")%>
                                                        </td>
                                                        <td width="10%" height="26" bgcolor='<%# Container.ItemIndex%2==0? "#f3f8fc":"#d5e6f3"%>'
                                                            align="center">
                                                            <%# Eval("realname")%>
                                                        </td>
                                                        <td width="10%" height="26" bgcolor='<%# Container.ItemIndex%2==0? "#f3f8fc":"#d5e6f3"%>'
                                                            align="center">
                                                            <%# Eval("email")%>
                                                        </td>
                                                        <td width="10%" height="26" bgcolor='<%# Container.ItemIndex%2==0? "#f3f8fc":"#d5e6f3"%>'
                                                            align="center">
                                                            <%# Eval("phone")%>
                                                        </td>
                                                        <td width="10%" height="26" bgcolor='<%# Container.ItemIndex%2==0? "#f3f8fc":"#d5e6f3"%>'
                                                            align="center">
                                                            <a href="seller_customerEdit_<%# Eval("customerId") %>.html">编辑</a>
                                                            <asp:LinkButton ID="lbt_delete" runat="server" CommandName="Del" CommandArgument='<%# Eval("customerId") %>'
                                                                Text="删除" OnClientClick="javascript:return confirm('你确定执行此操作吗?')">
                                                            </asp:LinkButton>
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                    </div>
                                    <div class="page">
                                        <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                                            AlwaysShow="true" Width="98%" runat="server" PageSize="15" InvalidPageIndexErrorMessage="无效页码"
                                            NumericButtonCount="5" PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left"
                                            CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 " CustomInfoTextAlign="Left"
                                            HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" NextPageText=">"
                                            FirstPageText="<<首页" LastPageText="末页>>" PrevPageText="<" CssClass="paginator"
                                            CurrentPageButtonClass="cpb">
                                        </webdiyer:AspNetPager>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <uc1:sellerFooter runat="server" ID="footer" />
    </div>
    </form>
</body>
</html>
